<template>
  <div class="app-container">
    <div class="submitting" v-if="waitVisible">
      <div class="submitting__container">
        <div class="submitting__pan">
          <img src="../assets/pic/pan_3.png" /><img
            src="../assets/pic/pan_4.png"
          />
        </div>
        <h3>正在为您生成专属报告</h3>
      </div>
    </div>
    <marquee
      behavior="scroll"
      direction="left"
      speed="slow"
      loop="infinite"
      scrollamount="5"
      scrolldelay="100"
      style=""
      class="marquee-text"
    >
      <span>
        本网页信息安全由腾讯云提供，严格按照法律法规和用户协议对您的信息进行全方位保护，请放心使用！内容纯属娱乐不得作为工作、生活之指导，需付费后方可查看结果，结果纯属娱乐仅供参考，暂不向未满
        18
        岁青少年提供服务，如未成年人使用且造成一切后果由监护人自行承担。请拒绝迷信相信科学，娱乐报告纯属虚构，无科学依据，非封建迷信不得作为工作、生活之指导。
      </span>
    </marquee>
    <div class="bazijp__header">
      <div class="bazijp__pan">
        <img src="../assets/index_static/pan_1.png" /><img
          src="../assets/index_static/pan_2.png"
        />
      </div>
    </div>
    <div>
      <div class="marquee-score" style="display: flex; flex-direction: row">
        <div class="comments-list">
          <ul style="top: -1117.88px"></ul>
          <ul :style="{ top: accountTop + 'rem' }">
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/18.jpg" />
              <p>
                <strong>繁花似锦</strong><br />
                37 分钟前测算，打了 93 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/11.jpg" />
              <p>
                <strong>青石小巷</strong><br />
                15 分钟前测算，打了 91 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/17.jpg" />
              <p>
                <strong>风铃草</strong><br />
                52 分钟前测算，打了 95 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/5.jpg" />
              <p>
                <strong>星辰</strong><br />
                28 分钟前测算，打了 92 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/10.jpg" />
              <p>
                <strong>彩云追月</strong><br />
                41 分钟前测算，打了 94 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/2.jpg" />
              <p>
                <strong>梦幻</strong><br />
                19 分钟前测算，打了 97 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/13.jpg" />
              <p>
                <strong>水墨丹青</strong><br />
                8 分钟前测算，打了 96 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/1.jpg" />
              <p>
                <strong>晨曦</strong><br />
                59 分钟前测算，打了 90 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/9.jpg" />
              <p>
                <strong>雪舞</strong><br />
                33 分钟前测算，打了 98 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/20.jpg" />
              <p>
                <strong>寒梅傲雪</strong><br />
                21 分钟前测算，打了 99 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/7.jpg" />
              <p>
                <strong>梦回江南</strong><br />
                44 分钟前测算，打了 92 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/4.jpg" />
              <p>
                <strong>静思</strong><br />
                3 分钟前测算，打了 94 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/16.jpg" />
              <p>
                <strong>笑看红尘</strong><br />
                50 分钟前测算，打了 91 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/12.jpg" />
              <p>
                <strong>琴瑟和鸣</strong><br />
                12 分钟前测算，打了 93 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/6.jpg" />
              <p>
                <strong>悠然</strong><br />
                24 分钟前测算，打了 95 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/19.jpg" />
              <p>
                <strong>梦里花开</strong><br />
                30 分钟前测算，打了 96 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/14.jpg" />
              <p>
                <strong>花影流年</strong><br />
                47 分钟前测算，打了 97 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/8.jpg" />
              <p>
                <strong>琉璃月</strong><br />
                27 分钟前测算，打了 98 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/3.jpg" />
              <p>
                <strong>清风</strong><br />
                10 分钟前测算，打了 99 分好评
              </p>
            </li>
            <li class="comment-item" style="color: rgb(255, 255, 255)">
              <img src="../assets/pic/15.jpg" />
              <p>
                <strong>墨流苏</strong><br />
                6 分钟前测算，打了 90 分好评
              </p>
            </li>
          </ul>
        </div>
        <div
          class="statistics-box"
          style="border-left-color: rgb(255, 255, 255)"
        >
          <div class="statistics" style="color: rgb(255, 255, 255)">
            已有 <b style="color: rgb(255, 203, 78)">228966</b> 人<br />
            测算了八字精批
          </div>
        </div>
      </div>
      <form class="bazijp__form" @submit.prevent="handleFormSubmit()">
        <!--  <div class="bazijp__form-items">
         <div class="bazijp__form-item">
            <label>您的姓名：</label>
            <input
              type="text"
              placeholder="请输入内容"
              v-model="submitFormInfo.userName"
              @focus="handleInputFocus"
              @blur="handleInputBlur"
            />
          </div>
          <div class="bazijp__form-item">
            <label>您的性别：</label>
            <div class="genders" ref="sexRef">
              <span class="gender active" @click="clickSex(1)" ref="sexMan"
                >男</span
              ><span class="gender" @click="clickSex(2)" ref="sexwoman"
                >女</span
              >
            </div>
          </div>
          <div class="bazijp__form-item" @click="gearDateVisible = true">
            <label>出生日期：</label>
            <input
              type="text"
              id="birthday"
              data-toid-date="date"
              data-type="0"
              placeholder="请选择出生日期"
              data-toid-hour="hour"
              @focus="handleInputFocus"
              @blur="handleInputBlur"
              v-model="selectTimeRes"
              style="width: 100%; box-sizing: border-box"
            />

            <input type="hidden" id="date" />
            <input type="hidden" id="hour" name="hour" />
          </div>
        </div> -->

        <div class="bazijp__form-action">
          <input
            type="image"
            src="https://hpay.yqiaoart.top/assets/submit.png"
            width="94%"
            class="btn-zoom"
            style="width: 94%"
          />
        </div>
        <div class="bazijp__form-agreement">
          <div>
            <div class="checkbox-agreement">
              <label style="color: rgb(229, 229, 229)"
                ><input
                  type="checkbox"
                  name="agree"
                  value="agree"
                  checked="checked"
                />
                我同意 </label
              ><span
                class="checkbox-agreement__link"
                style="color: rgb(255, 203, 78)"
                @click="handleAgree"
                >《隐私协议》</span
              >
            </div>
          </div>
        </div>
      </form>
      <div class="bazijp__form-history">
        <a href="/#/orderQuery" class="router-link-active">查询我的订单 »</a>
      </div>
      <div class="bazijp__intro">
        <img src="../assets/index_static/3693.jpg" />
        <img src="../assets/index_static/intro_2.jpg" /><img
          src="../assets/index_static/intro_3.png"
        /><img src="../assets/index_static/intro_4.png" /><img
          src="../assets/index_static/intro_5.jpg"
        /><img src="../assets/index_static/intro_6.png" /><img
          src="../assets/index_static/intro_7.jpg"
        /><img src="../assets/index_static/intro_8.png" /><img
          src="../assets/index_static/intro_9.png"
        /><img src="../assets/index_static/intro_10.png" />
      </div>
      <div
        style="
          font-size: 14px;
          text-align: center;
          color: #ddcaaa;
          padding: 30px 0 50px 0;
        "
      >
        <div style="margin-bottom: 0.625rem">
          测试结果/算法来自于专业老师团队
        </div>
        <div style="margin-bottom: 0.625rem">
          如需帮助点此请联系<span>
            <el-button type="text" style="color: aqua" @click="callKefu">
              {{ "专属售后客服" }}
            </el-button></span
          >
        </div>
        <div style="margin-bottom: 0.625rem">
          平台所有产品拒绝向未成年人提供服务，仅供娱乐和参考！
        </div>
        <div style="margin-bottom: 0.625rem">
          <span> icp 备案号：皖 ICP 备 2025086489 号 -1</span>
        </div>
        <div style="margin-bottom: 0.625rem">
          <span> 公司：萧县渔樵文化传媒有限公司</span>
        </div>
      </div>
      <div class="bazijp__intro">
        <img src="../assets/index_static/onthebotom.png" />
      </div>
    </div>
    <div class="policy-dialog__container" v-if="handleAgreeVisible">
      <div class="policy-dialog">
        <span
          class="policy-dialog__close"
          @click="handleAgreeVisible = false"
        ></span
        ><strong>隐私条款</strong>
        <p>
          尊敬的用户，欢迎阅读本协议：<br /><br />
          生辰测算系统依据本协议的规定提供服务，本协议具有合同效力。您必须完全同意以下所有条款，才能保证享受到更好的服务。您使用服务的行为将视为对本协议的接受，并同意接受本协议各项条款的约束。<br /><br />
          用户在申请生辰测算系统服务过程中，需要填写一些必要的个人信息，为了更好的为用户服务，请保证提供的这些个人信息的真实、准确、合法、有效并注意及时更新。若因填写的信息不完整或不准确，则可能无法使用本服务或在使用过程中受到限制。如因用户提供的个人资料不实或不准确，给用户自身造成任何性质的损失，均由用户自行承担。<br /><br />
          保护用户个人信息是生辰测算系统的一项基本原则，生辰测算系统运用各种安全技术和程序建立完善的管理制度来保护用户的个人信息，以免遭受未经授权的访问、使用或披露。未经用户许可生辰测算系统不会向第三方（生辰测算系统公司或关联、运营合作单位除外）公开、透露用户个人信息，但由于政府要求、法律政策需要等原因除外。<br /><br />
          在用户发送信息的过程中和本网站收到信息后，本网站将遵守行业通用的标准来保护用户的私人信息。但是任何通过因特网发送的信息或电子版本的存储方式都无法确保
          100%
          的安全性。因此，本网站会尽力使用商业上可接受的方式来保护用户的个人信息，但不对用户信息的安全作任何担保。<br /><br />
          此外，您已知悉并同意：在现行法律法规允许的范围内，生辰测算系统可能会将您非隐私的个人信息用于市场营销，使用方式包括但不限于：在网页或者
          app
          平台中向您展示或提供广告和促销资料，向您通告或推荐服务或产品信息，使用，短信等方式推送其他此类根据您使用生辰测算系统服务或产品的情况所认为您可能会感兴趣的信息。<br /><br />
          本网站有权在必要时修改服务条例，本网站的服务条例一旦发生变动，将会在本网站的重要页面上提示修改内容，用户如不同意新的修改内容，须立即停止使用本协议约定的服务，否则视为用户完全同意并接受新的修改内容。根据客观情况及经营方针的变化，本网站有中断或停止服务的权利，用户对此表示理解并完全认同。<br /><br />
          如果您还有其他问题和建议，可以在线联系方式联系我们。<br /><br />
          生辰测算系统保留对本协议的最终解释权。
        </p>
      </div>
    </div>
    <!-- <div class="info-card">公司名称</div> -->
  </div>
</template>
<script setup>
import router from "@/router";
import { ref, computed, onMounted } from "vue";

const buyTarget = ref(false);
const selectedDate = ref("");
const lunarDate = ref("");
const confirmationVisible = ref(false);

const getLunarDate = () => {};
const handleDateChange = (value) => {
  // 这里可以将阳历转换为农历
  lunarDate.value = getLunarDate(value);
};
const showConfirmation = () => {
  confirmationVisible.value = true;
};
// 防止 iOS 输入框缩放的方法
const handleInputFocus = () => {
  // 禁用缩放
  document.body.style.zoom = "1";
  document.body.style.transform = "scale(1)";
  document.body.style.transformOrigin = "0 0";
};

const handleInputBlur = () => {
  // 恢复缩放
  document.body.style.zoom = "";
  document.body.style.transform = "";
  document.body.style.transformOrigin = "";
};
const confirmDate = () => {
  // 确认逻辑
  confirmationVisible.value = false;
  // this.$message.success("时间确认成功");
};
const cancelConfirmation = () => {
  confirmationVisible.value = false;
};
const marqueeList = ref(0);

const marqueeScore = () => {
  setInterval(() => {
    marqueeList.value = (marqueeList.value + 1) % 100;
    console.log(marqueeList.value);
  }, 10000);
};
const sexRef = ref(null);
const sexwoman = ref(null);
const sexMan = ref(null);
const gearDateVisible = ref(false);
const submitFormInfo = ref({
  userName: "",
  sex: 1,
  time: null,
});
const submitTimeForm = ref({
  year: 1985,
  month: 1,
  day: 16,
  hour: null,
});

const computedNongliDay = (year, monthIndex) => {
  let temp = nongliDayNum[year - 1940];
  let res = temp.dayNum[monthIndex - 1];
  return res;
};

const nongliDayNum = [
  { year: 1940, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 1941, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1942, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1943, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 1944, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 1945, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1946, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1947, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1948, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 1949, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1950, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1951, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1952, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 1953, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1954, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1955, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 1956, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 1957, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 1958, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1959, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1960, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1961, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 1962, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1963, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1964, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 1965, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 1966, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 1967, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1968, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1969, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1970, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 1971, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1972, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1973, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 1974, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 1975, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 1976, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1977, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1978, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1979, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 1980, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1981, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1982, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 1983, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 1984, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 1985, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1986, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1987, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1988, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 1989, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1990, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1991, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 1992, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 1993, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 1994, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1995, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1996, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 1997, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 1998, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 1999, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2000, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 2001, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 2002, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 2003, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2004, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2005, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2006, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 2007, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2008, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2009, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 2010, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 2011, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 2012, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2013, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2014, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2015, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 2016, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2017, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2018, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 2019, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 2020, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 2021, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2022, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2023, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2024, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 2025, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2026, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2027, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 2028, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 2029, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 2030, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2031, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2032, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2033, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29] },
  { year: 2034, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2035, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
  { year: 2036, dayNum: [30, 29, 30, 29, 30, 30, 29, 30, 29, 30, 29, 29] },
  { year: 2037, dayNum: [30, 29, 30, 29, 30, 29, 30, 30, 29, 30, 29, 30] },
  { year: 2038, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30, 29] },
  { year: 2039, dayNum: [30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 30] },
  { year: 2040, dayNum: [29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30] },
];

const handleAgreeVisible = ref(false);

const handleAgree = () => {
  handleAgreeVisible.value = true;
};

const flatpickrFunc = () => {
  flatpickr("#datepicker", {
    dateFormat: "Y-m-d", // 只显示年月日
    enableTime: false, // 禁用时间选择
  });
};

const hourCount = ref(0);
const waitVisible = ref(false);

const hoveredSelector = ref(null);

// 添加节流控制变量
const lastWheelTime = ref(0);
const wheelThrottleDelay = 150; // 增加节流延迟到 150ms，防止滑动过快

const commentList = ref([
  {
    avatar: "../assets/index_static/10.jpg",
    name: "繁花似锦",
    comment: "37 分钟前测算，打了 93 分好评",
  },
  {
    avatar: "../assets/index_static/11.jpg",
    name: "青石小巷",
    comment: "15 分钟前测算，打了 91 分好评",
  },
  {
    avatar: "../assets/index_static/10.jpg",
    name: "繁花似锦",
    comment: "37 分钟前测算，打了 93 分好评",
  },
  {
    avatar: "../assets/index_static/10.jpg",
    name: "繁花似锦",
    comment: "37 分钟前测算，打了 93 分好评",
  },
  {
    avatar: "../assets/index_static/10.jpg",
    name: "繁花似锦",
    comment: "37 分钟前测算，打了 93 分好评",
  },
  {
    avatar: "../assets/index_static/10.jpg",
    name: "繁花似锦",
    comment: "37 分钟前测算，打了 93 分好评",
  },
  {
    avatar: "../assets/index_static/10.jpg",
    name: "繁花似锦",
    comment: "37 分钟前测算，打了 93 分好评",
  },
]);

const introList = ref([
  {
    img: "../assets/index_static/intro_1.jpg",
  },
  {
    img: "../assets/index_static/intro_2.jpg",
  },
  {
    img: "../assets/index_static/intro_3.jpg",
  },
  {
    img: "../assets/index_static/intro_4.jpg",
  },
  {
    img: "../assets/index_static/intro_5.jpg",
  },
  {
    img: "../assets/index_static/intro_6.jpg",
  },
  {
    img: "../assets/index_static/intro_7.jpg",
  },
  {
    img: "../assets/index_static/intro_8.jpg",
  },
  {
    img: "../assets/index_static/intro_9.jpg",
  },
  {
    img: "../assets/index_static/intro_10.jpg",
  },
]);

const accountTop = ref(0);
const topSetCount = ref(0);
const timeId = () => {
  setInterval(() => {
    accountTop.value = accountTop.value - 2.8129;
    topSetCount.value++;
    if (topSetCount.value == 21) {
      accountTop.value = 0;
      topSetCount.value = 0;
    }
  }, 2000);
};
timeId();

const startY = ref(); //年
const startM = ref(); //月
const startD = ref(); //日
const startH = ref(); //时辰

const startTouch = (event, type) => {
  // 保存触摸起始位置
  if (type == "year") {
    startY.value = event.touches[0].clientY;
  } else if (type == "month") {
    startM.value = event.touches[0].clientY;
  } else if (type == "day") {
    startD.value = event.touches[0].clientY;
  } else if (type == "hour") {
    startH.value = event.touches[0].clientY;
  }
};

const moveTouch = (event, type) => {
  // 获取当前触摸位置
  const touchCurrentY = event.touches[0].clientY;

  let deltaY; // 声明 deltaY 变量

  if (type == "year") {
    deltaY = startY.value - touchCurrentY; // 修改方向
  } else if (type == "month") {
    deltaY = startM.value - touchCurrentY; // 修改方向
  } else if (type == "day") {
    deltaY = startD.value - touchCurrentY; // 修改方向
  } else if (type == "hour") {
    deltaY = startH.value - touchCurrentY; // 修改方向
  }

  // 限制触摸滑动的敏感度，防止滑动过快
  const sensitivity = 0.4; // 降低敏感度
  const adjustedDeltaY = deltaY * sensitivity;

  if (Math.abs(adjustedDeltaY) > 12) {
    // 提高触发阈值
    if (adjustedDeltaY > 0) {
      // 向下滚动
      mousewheel({ deltaY: adjustedDeltaY }, type);
    } else {
      // 向上滚动
      mousewheel({ deltaY: adjustedDeltaY }, type);
    }
  }
};

const endTouch = (event, type) => {
  // 重置起始触摸位置
  if (type == "year") {
    startY.value = null;
  } else if (type == "month") {
    startM.value = null;
  } else if (type == "data") {
    startD.value = null;
  } else if (type == "hour") {
    startH.value = null;
  }
};

const gongli = ref(null);
const nongli = ref(null);

const lcalendarSelect = ref(0);
const handleLcalendar = () => {
  gongli.value.classList.toggle("active");
  nongli.value.classList.toggle("active");
  lcalendarSelect.value = lcalendarSelect.value == 0 ? 1 : 0;
};

const clickSex = (sex) => {
  sexwoman.value.classList.toggle("active");
  sexMan.value.classList.toggle("active");
  if (sex == 1) {
    submitFormInfo.value.sex = 1;
  } else {
    submitFormInfo.value.sex = 2;
  }
};
const callKefu = () => {
  window.location.href = "https://tz.dakw.xyz/ss/11.html?tkey=3f0e6fae34";
  localstorage.setItem(
    "originalurl",
    "https://tz.dakw.xyz/ss/11.html?tkey=3f0e6fae34"
  );
};

window.onload = () => {
  const originalUrl = localstorage.getItem("originalurl");
  if (originalUrl) {
    window.location.href = originalUrl;
    localstorage.removeItem("originalurl"); //清除存储的 URL
  }
};

const handleFormSubmit = () => {
  // console.log("submitFormInfo.value ", submitFormInfo.value);
  // if (
  //   submitFormInfo.value.userName &&
  //   submitFormInfo.value.sex &&
  //   submitFormInfo.value.time
  // ) {
  //   if (!validateName(submitFormInfo.value.userName)) {
  //     return;
  //   }
  //   if (submitFormInfo.value.sex == 2) {
  //     submitFormInfo.value.sex == 0;
  //   }
  //   waitVisible.value = true;
  //   setTimeout(() => {
  //     submitFormInfo.value.lcalendarSelect = lcalendarSelect.value;
  //     localStorage.setItem(
  //       "submitFormInfo",
  //       JSON.stringify(submitFormInfo.value)
  //     );
  //     localStorage.setItem(
  //       "lcalendarSelect",
  //       JSON.stringify(lcalendarSelect.value)
  //     );
  //     router.push({
  //       path: "/analysis",
  //       query: submitFormInfo.value,
  //     });
  //   }, 100);
  //   return;
  // }
  // alert("不能为空");
  get_client_ip();
  router.push("/BirthFrom");
};
/**
 * 验证中文姓名是否合法
 * @param {string} name 待验证的姓名
 * @returns {object} 验证结果对象 {valid: boolean, message: string}
 */
const validateName = (name) => {
  const trimmedName = name.trim();
  if (!trimmedName) {
    alert("姓名不能为空");
    return false;
  }
  // 中文姓名正则表达式：2-10 个汉字
  const chineseNameRegex = /^[\u4e00-\u9fa5]{2,10}$/;

  // 验证姓名格式
  if (!chineseNameRegex.test(trimmedName)) {
    alert("请输入正确的姓名");
    return false;
  }
  return true;
};
const years = Array.from({ length: 91 }, (_, i) => 1940 + i);
const months = Array.from({ length: 12 }, (_, i) => i + 1);
const monthsNongLi = [
  "正月",
  "二月",
  "三月",
  "四月",
  "五月",
  "六月",
  "七月",
  "八月",
  "九月",
  "十月",
  "十一月",
  "十二月",
];
const lunarDayNames = [
  "初一",
  "初二",
  "初三",
  "初四",
  "初五",
  "初六",
  "初七",
  "初八",
  "初九",
  "初十",
  "十一",
  "十二",
  "十三",
  "十四",
  "十五",
  "十六",
  "十七",
  "十八",
  "十九",
  "二十",
  "廿一",
  "廿二",
  "廿三",
  "廿四",
  "廿五",
  "廿六",
  "廿七",
  "廿八",
  "廿九",
];
// const timePeriodsString = `时辰未知，00:00-00:59(早子),01:00-01:59(丑),02:00-02:59(丑),03:00-03:59(寅),04:00-04:59(寅),05:00-05:59(卯),06:00-06:59(卯),07:00-07:59(辰),08:00-08:59(辰),09:00-09:59(巳),10:00-10:59(巳),11:00-11:59(午),12:00-12:59(午),13:00-13:59(未),14:00-14:59(未),15:00-15:59(申),16:00-16:59(申),17:00-17:59(酉),18:00-18:59(酉),19:00-19:59(戌),20:00-20:59(戌),21:00-21:59(亥),22:00-22:59(亥),23:00-23:59(晚子)`;
const timePeriodsArray = [
  { startTime: null, endTime: null, periodName: "时辰未知" },
  { startTime: "00:00", endTime: "00:59", periodName: "早子" },
  { startTime: "01:00", endTime: "01:59", periodName: "丑" },
  { startTime: "02:00", endTime: "02:59", periodName: "丑" },
  { startTime: "03:00", endTime: "03:59", periodName: "寅" },
  { startTime: "04:00", endTime: "04:59", periodName: "寅" },
  { startTime: "05:00", endTime: "05:59", periodName: "卯" },
  { startTime: "06:00", endTime: "06:59", periodName: "卯" },
  { startTime: "07:00", endTime: "07:59", periodName: "辰" },
  { startTime: "08:00", endTime: "08:59", periodName: "辰" },
  { startTime: "09:00", endTime: "09:59", periodName: "巳" },
  { startTime: "10:00", endTime: "10:59", periodName: "巳" },
  { startTime: "11:00", endTime: "11:59", periodName: "午" },
  { startTime: "12:00", endTime: "12:59", periodName: "午" },
  { startTime: "13:00", endTime: "13:59", periodName: "未" },
  { startTime: "14:00", endTime: "14:59", periodName: "未" },
  { startTime: "15:00", endTime: "15:59", periodName: "申" },
  { startTime: "16:00", endTime: "16:59", periodName: "申" },
  { startTime: "17:00", endTime: "17:59", periodName: "酉" },
  { startTime: "18:00", endTime: "18:59", periodName: "酉" },
  { startTime: "19:00", endTime: "19:59", periodName: "戌" },
  { startTime: "20:00", endTime: "20:59", periodName: "戌" },
  { startTime: "21:00", endTime: "21:59", periodName: "亥" },
  { startTime: "22:00", endTime: "22:59", periodName: "亥" },
  { startTime: "23:00", endTime: "23:59", periodName: "晚子" },
];
// const timePeriodsArray = timePeriodsString.split(',')
const daysInMonth = computed(() => {
  const year = submitTimeForm.value.year;
  const month = submitTimeForm.value.month;
  // 判断是否为闰年
  const isLeapYear = (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  // 各月天数（索引 0-11 对应 1-12 月）
  const monthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
  // 闰年 2 月有 29 天
  if (month === 2 && isLeapYear) {
    return 29;
  }
  return monthDays[month - 1];
});

// 其他 JavaScript 代码，用于实现日期选择逻辑
const yearMousewheelValue = ref(-82);
const monthMousewheelValue = ref(8);
const dayMousewheelValue = ref(-22);
const hourMousewheelValue = ref(8);
const mousewheel = (e, type) => {
  // 添加节流控制，防止滑动过快
  const now = Date.now();
  if (now - lastWheelTime.value < wheelThrottleDelay) {
    return; // 如果距离上次滑动时间太短，则忽略此次滑动
  }
  lastWheelTime.value = now;

  const delta = e.deltaY > 0 ? 1 : -1;

  if (type === "year") {
    // 限制年份滑动的变化量，防止滑动过快
    const absDeltaY = Math.abs(e.deltaY);
    let changeAmount = 1; // 默认每次改变 1 年

    // 根据滑动速度调整变化量，但限制最大变化量
    if (absDeltaY > 50) {
      changeAmount = Math.min(Math.floor(absDeltaY / 50), 4); // 最多一次改变3年
    }

    if (delta == 1) {
      if (submitTimeForm.value.year < 2030) {
        const maxChange = Math.min(
          changeAmount,
          2030 - submitTimeForm.value.year
        );
        yearMousewheelValue.value = yearMousewheelValue.value - 2 * maxChange;
        submitTimeForm.value.year += maxChange;
      }
    } else {
      if (submitTimeForm.value.year > 1940) {
        const maxChange = Math.min(
          changeAmount,
          submitTimeForm.value.year - 1940
        );
        yearMousewheelValue.value = yearMousewheelValue.value + 2 * maxChange;
        submitTimeForm.value.year -= maxChange;
      }
    }
  } else if (type === "month") {
    if (delta == 1) {
      if (submitTimeForm.value.month < 12) {
        monthMousewheelValue.value = monthMousewheelValue.value - 2;
        submitTimeForm.value.month++;
        if (lcalendarSelect.value == 0) {
          if (submitTimeForm.value.day > daysInMonth.value) {
            dayMousewheelValue.value =
              dayMousewheelValue.value +
              2 * (submitTimeForm.value.day - daysInMonth.value);
            submitTimeForm.value.day = daysInMonth.value;
          }
        } else {
          let nongliDayNum = computedNongliDay(
            submitTimeForm.value.year,
            submitTimeForm.value.month
          );
          if (submitTimeForm.value.day > nongliDayNum) {
            dayMousewheelValue.value =
              dayMousewheelValue.value +
              2 * (submitTimeForm.value.day - nongliDayNum);
            submitTimeForm.value.day = nongliDayNum;
          }
        }
      }
    } else {
      if (submitTimeForm.value.month > 1) {
        monthMousewheelValue.value = monthMousewheelValue.value + 2;
        submitTimeForm.value.month--;
        if (lcalendarSelect.value == 0) {
          if (submitTimeForm.value.day > daysInMonth.value) {
            dayMousewheelValue.value =
              dayMousewheelValue.value -
              2 * (submitTimeForm.value.day - daysInMonth.value);
            submitTimeForm.value.day = daysInMonth.value;
          }
        } else {
          let nongliDayNum = computedNongliDay(
            submitTimeForm.value.year,
            submitTimeForm.value.month
          );
          if (submitTimeForm.value.day > nongliDayNum) {
            dayMousewheelValue.value =
              dayMousewheelValue.value -
              2 * (submitTimeForm.value.day - nongliDayNum);
            submitTimeForm.value.day = nongliDayNum;
          }
        }
      }
    }
  } else if (type === "day") {
    console.log(
      submitTimeForm.value.day,
      daysInMonth.value,
      dayMousewheelValue.value
    );
    if (delta == 1) {
      if (lcalendarSelect.value == 0) {
        if (submitTimeForm.value.day < daysInMonth.value) {
          dayMousewheelValue.value = dayMousewheelValue.value - 2;
          submitTimeForm.value.day++;
        }
      } else {
        if (
          submitTimeForm.value.day <
          computedNongliDay(
            submitTimeForm.value.year,
            submitTimeForm.value.month
          )
        ) {
          dayMousewheelValue.value = dayMousewheelValue.value - 2;
          submitTimeForm.value.day++;
        }
      }
    } else {
      if (submitTimeForm.value.day > 1) {
        dayMousewheelValue.value = dayMousewheelValue.value + 2;
        submitTimeForm.value.day--;
      }
    }
  } else if (type === "hour") {
    if (delta == 1) {
      console.log("hourCount", hourCount.value);
      console.log("hourMousewheelValue", hourMousewheelValue.value);
      if (hourCount.value < timePeriodsArray.length - 1) {
        hourMousewheelValue.value = hourMousewheelValue.value - 2;
        hourCount.value++;
      }
    } else {
      console.log("10", hourCount.value);
      if (hourCount.value > 0) {
        hourMousewheelValue.value = hourMousewheelValue.value + 2;
        hourCount.value--;
      }
    }
  }
};

const focusInput = (event) => {
  // flatpickrFunc;
  // 获取当前输入框并聚焦
  // event.target.focus();
};

const convertTimeFormat = (timeRange) => {
  return timeRange.replace(/(\d{1,2}):\d{2}/g, (match) => {
    return parseInt(match.split(":")[0], 10) + "时";
  });
};
const selectTimeRes = computed(() => {
  let hourInfo = "";
  if (submitTimeForm.value.hour == null) {
    return "";
  }
  if (submitTimeForm.value.hour.startTime != null) {
    hourInfo = convertTimeFormat(submitTimeForm.value.hour.startTime);
  } else {
    hourInfo = submitTimeForm.value.hour.periodName;
  }
  if (lcalendarSelect.value == 0) {
    return (
      "公历：" +
      submitTimeForm.value.year +
      "-" +
      submitTimeForm.value.month +
      "-" +
      submitTimeForm.value.day +
      " " +
      hourInfo
    );
  } else {
    let dayInfo = computedNongliDay(
      submitTimeForm.value.year,
      submitTimeForm.value.month
    );
    let resDay =
      dayInfo == 30 && submitTimeForm.value.day == 30
        ? "三十"
        : lunarDayNames[submitTimeForm.value.day - 1];
    let res =
      "农历：" +
      submitTimeForm.value.year +
      "年" +
      monthsNongLi[submitTimeForm.value.month - 1] +
      resDay +
      " " +
      hourInfo;
    console.log(res);
    return res;
  }
});
const userIP = ref("");
const get_client_ip = () => {
  // const userIP = "";
  fetch("/api/client/getClientIp")
    .then((response) => response.json())
    .then((data) => {
      userIP.value = data.data; // 获取用户 IP userIP = data.ip; // 假设返回的数据中有 ip 字段
      localStorage.setItem("userIP", userIP.value);
      // 然后将 userIP 作为参数传递
    });
  // return userIP;
};

const submitSelectTime = () => {
  console.log("hourCount.value ", hourCount.value);
  submitTimeForm.value.hour = timePeriodsArray[hourCount.value];
  console.log(
    timePeriodsArray[hourCount.value],
    "timePeriodsArray[hourCount.value]"
  );

  gearDateVisible.value = false;
  submitFormInfo.value.time = JSON.stringify(submitTimeForm.value);
  localStorage.removeItem("lcalendarSelect");

  localStorage.setItem(
    "lcalendarSelect",
    JSON.stringify(lcalendarSelect.value)
  );
};
onMounted(() => {
  const urlParams = new URLSearchParams(window.location.search);

  // 获取特定参数
  const paramValue = urlParams.get("bd_vid"); // 替换 'paramName' 为你想要获取的参数名
  localStorage.setItem("bdVid", paramValue);
});

marqueeScore();
</script>

<style scoped lang="scss">
@import url("../assets/index_static/app.css");

.app-container {
  // max-width: 390px;
  background: #273152;
  font-size: 1rem;
  position: relative;
  // .info-card {
  //   position: absolute;
  //   top: 34%;
  //   right: 28%;
  //   width: 100px;
  //   height: 20px;
  //   font-size: 14px;
  //   line-height: 20px;
  //   background-color: rgba(255, 255, 255, 0.9);
  //   border: 1px solid #ccc;
  //   border-radius: 10px;
  //   padding: 2px;
  //   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  //   text-align: center;
  //   z-index: 9999;
  // }

  // .info-icon {
  //   width: 50px; /* 图标的宽度 */
  //   height: 50px; /* 图标的高度 */
  //   margin-bottom: 10px; /* 图标与文本之间的间距 */
  // }

  .gearDate {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    display: block;
    position: absolute;
    position: fixed;
    overflow-y: scroll; /* 允许纵向滚动 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9900;
    // overflow: hidden;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    transform: translateZ(0);
  }

  .date_ctrl {
    vertical-align: middle;
    background-color: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    color: #363837;
    margin: 0;
    height: auto;
    width: 90%;
    max-width: 600px;
    position: absolute;
    left: 0;
    right: 0;
    top: 30%;
    z-index: 9902;
    // overflow: hidden;
    margin: 0 auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -ms-user-select: none;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  }

  .date_roll {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    // overflow-y: auto; /* 使得只有这个区域可以滚动 */
    background-color: transparent;
    -webkit-mask: -webkit-linear-gradient(
      top,
      #debb47 50%,
      rgba(36, 142, 36, 0)
    );
    mask: gradient(
      linear,
      0 50%,
      0 100%,
      from(#debb47),
      to(rgba(36, 142, 36, 0))
    );
  }

  .date_roll > div {
    font-size: 2em;
    height: 10em;
    float: left;
    background-color: transparent;
    position: relative;
    // overflow: hidden;
    width: 33.3333%;
  }

  .date_roll_hh > div {
    width: 20%;
  }

  .date_roll_hh > div:last-child {
    width: 40%;
  }

  .date_roll_hhii > div {
    width: 20%;
  }

  .date_roll_mask {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y; /* 允许竖向滚动 */
    -webkit-mask: -webkit-linear-gradient(
      bottom,
      #debb47 50%,
      rgba(36, 142, 36, 0)
    );
    mask: -webkit-gradient(
      linear,
      0 40%,
      0 0,
      from(#debb47),
      to(rgba(36, 142, 36, 0))
    );
  }
  // .scroll-container {
  //   overflow-y: auto; /* 允许垂直滚动 */
  //   -webkit-overflow-scrolling: touch; /* 优化触摸滚动 */
  // }

  .date_grid {
    position: relative;
    top: 4em;
    width: 100%;
    height: 2em;
    margin: 0;
    box-sizing: border-box;
    z-index: 0;
    border-top: 2px solid #fe5b00;
    border-bottom: 2px solid #fe5b00;
    box-shadow: #fe5b00 0 0 4px;
    opacity: 0.3;
  }

  .date_grid > div {
    color: #000;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8em;
    line-height: 2.5em;
  }

  .date_cw_btn {
    position: relative;
  }

  .date_class_box {
    text-align: center;
    padding: 1em 0;
    border-bottom: 1px solid #f6f6f6;
  }

  .date_class {
    display: inline-block;
    font-size: 1.4em;
    padding: 0.2em 0;
    width: 25%;
    text-align: center;
    color: #fe5b00;
    border: 1px solid #fe5b00;
    cursor: pointer;
    line-height: 1.6em;
    box-sizing: border-box;
  }

  .date_class:first-of-type {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    font-weight: 700;
  }

  .date_class:last-of-type {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  .date_class_box .active {
    background-color: #fe5b00;
    color: #fff;
  }

  .date_btn_box {
    overflow: hidden;
    border-top: 1px solid #f6f6f6;
  }

  .date_btn_wrap {
    position: relative;
    z-index: 1;
  }

  .date_btn {
    position: absolute;
    top: 0;
    color: #333;
    font-size: 1.6em;
    line-height: 1.6em;
    padding: 0.8em 0;
    text-align: center;
    cursor: pointer;
    width: 25%;
    box-sizing: border-box;
    font-weight: 700;
  }

  .date_btn:first-child {
    left: 0;
  }

  .date_btn:last-child {
    right: 0;
    color: #fe5b00;
  }

  .gear {
    float: left;
    position: absolute;
    z-index: 9902;
    width: 5.5em;
    margin-top: -4em;
    overflow-y: auto;
    /* 允许垂直滚动 */
    transition: transform 0.1s ease-out;
    cursor: pointer;
  }

  .date_roll > div .gear {
    width: 100%;
  }

  .tooth {
    height: 2.8571em;
    line-height: 2.8571em;
    text-align: center;
    font-size: 0.7em;
  }

  .date_confirm_wrap {
    text-align: center;
    display: none;
    position: relative;
  }

  .confirm_tit {
    padding: 0.68em 0;
    border-bottom: 1px solid #f6f6f6;
    font-size: 1.8em;
    color: #fe5b00;
  }

  .confirm_tip {
    display: inline-block;
    font-size: 1.4em;
    color: #666;
    line-height: 1.6em;
    margin: 1em;
  }

  .confirm_p {
    font-size: 1.7em;
    line-height: 2em;
  }

  .confirm_p b {
    color: #fe5b00;
    font-weight: 400;
  }

  .confirm_btn {
    position: relative;
    padding: 1.4em 0 2.7em;
  }

  .confirm_btn > div {
    display: inline-block;
    margin: 0 1em;
    color: #fff;
    font-size: 1.6em;
    border-radius: 5px;
    padding: 0.6em 1.2em;
  }

  .confirm_btn_cancel {
    background-color: #b1b1b1;
  }

  .confirm_btn_finish {
    background-color: #fe5b00;
  }

  .marquee-text {
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.5);
  }

  .bazijp__header {
    background: url("/public/header.jpg") no-repeat center;
    background-size: 100% auto;
    position: relative;
    display: block;
    overflow: hidden;
    .bazijp__pan {
      position: absolute;
      width: 17.8153rem;
      height: 17.8153rem;
      // top: -4.5%;
      right: -40%;
    }

    .bazijp__pan img {
      width: 17.8153rem;
      height: 17.8153rem;
      position: absolute;
      animation: pan_img 10s linear infinite;

      @keyframes pan_img {
        0% {
          transform: rotate(0deg);
        }

        100% {
          transform: rotate(1turn);
        }
      }
    }
  }

  .marquee-score {
    position: relative;
    padding: 0 1.0314rem;
    margin-bottom: 0.5626rem;

    .custom-marquee-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      animation: scrollUp 15s linear infinite;
      text-align: center;
    }

    @keyframes scrollUp {
      0% {
        transform: translateY(0);
      }

      100% {
        transform: translateY(-50%);
      }
    }

    .comments-list {
      flex: 2;
      overflow: hidden;
      height: 2.8129rem;

      > ul {
        position: relative;
        transition: top 1s;
        list-style: none;
        padding-left: 0;
        margin-top: 0;
        margin-bottom: 0;
      }

      > li {
        height: 2.8129rem;
      }

      .comment-item {
        display: flex;
        flex-direction: row;
        align-items: center;

        > img {
          width: 2.2504rem;
          height: 2.2504rem;
          margin-right: 0.3751rem;
          border-radius: 1.1252rem;
        }
      }
    }

    .statistics-box {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: right;
      border-left-width: 0.0469rem;
      border-left-style: solid;
      line-height: 1.6;
      position: relative;
    }
  }

  .bazijp__form {
    margin: 0 0.7501rem;

    .bazijp__form-items {
      border-radius: 0.3751rem;
      border: 0.0938rem solid #b39569;
      background: #f9f5ef;

      .bazijp__form-item {
        display: flex;
        align-items: center;
        padding-left: 1rem;

        .genders {
          display: flex;
          gap: 0.9376rem;
          align-items: center;

          .gender {
            cursor: pointer;
            height: 1.3127rem;
            width: 1.3127rem;
            display: block;
            background: #fff;
            text-align: center;
            line-height: 1.3127rem;
            color: #32110a;
            border-radius: 0.8908rem;
            font-size: 0.7501rem;
          }

          .active {
            background: #333;
            color: #fff;
          }
        }

        > label {
          width: 5.6882rem;
          color: #573714;
          text-align: center;
        }

        > input {
          flex: 1;
          border: none;
          background: transparent;
          height: 2.1566rem;
        }
      }
    }
  }
}

.bazijp__header {
  height: 30rem;
}

@media (min-width: 290px) and (max-width: 429px) {
}

@media (min-width: 430px) and (max-width: 500px) {
  .bazijp__header {
    height: 33rem;
  }
}
.date-picker {
  position: absolute;
  z-index: 999; /* 确保在其他元素之上 */
}

.no-scroll {
  overflow: hidden;
}
</style>
